package com.yi.wood.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by moyi on 2019/1/30 16:38
 *
 * @author moyi
 */
@Entity
@Table(name = "goods_order")
public class Order extends BaseEntity{

    @Column(name = "order_no", columnDefinition = "bigint(20) comment '订单号'")
    private Long orderNo;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "goods_no",length = 64)
    private String goodsNo;

    @Column(name = "num", columnDefinition = "int(4) comment '数量'")
    private Integer num;

    /**
     * 支付总金额（单位：分）
     */
    @Column(name = "total_price", columnDefinition = "int(4) comment '总金额'")
    private Integer totalPrice;

    /**
     * 1：待支付，2：已支付，3：退款中，4：已退款，5：取消
     */
    @Column(name = "pay_status", columnDefinition = "int(2) comment '支付状态'")
    private Integer payStatus;

    /**
     * 支付方式，1：微信，2：支付宝，3：银联
     */
    @Column(name = "pay_type", columnDefinition = "int(2) comment '支付方法'")
    private Integer payType;

    @Column(name = "pay_time")
    private Date payTime;

    public Long getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(Long orderNo) {
        this.orderNo = orderNo;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Integer totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }
}
